﻿<MenuItem 
    x:Class="TfsWorkbench.PollingService.PollingServiceMenuItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:PollingService="clr-namespace:TfsWorkbench.PollingService" 
    xmlns:Properties1="clr-namespace:TfsWorkbench.PollingService.Properties" 
    Command="{x:Static PollingService:LocalCommandLibrary.ShowPollerDialogCommand}"
    CommandTarget="{Binding RelativeSource={RelativeSource Self}}"
    >
	<MenuItem.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/TfsWorkbench.UIElements;Component/Resources/ApplicationStyles.xaml"/>
                <ResourceDictionary Source="/TfsWorkbench.UIElements;Component/Resources/CommandButtonStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </MenuItem.Resources>
	<MenuItem.Header>
        <TextBlock>
            <Run Text="Show: " />
            <TextBlock Text="{Binding Source={x:Static Properties1:Settings.Default}, Path=PluginName}" />
        </TextBlock>
    </MenuItem.Header>
    <MenuItem.Icon>
        <ContentControl 
            Template="{StaticResource RefreshIconTemplate}" 			
            Style="{StaticResource MenuIconStyle}"            
            />
    </MenuItem.Icon>
</MenuItem>
